package com.yoofn.framework.fragment

import android.databinding.ViewDataBinding
import android.os.Bundle
import android.view.View

/**
 * Created by kalshen on 17-9-4.
 * @描述 用于replaceActivity 中的 fragment
 */
abstract class ReplaceFragment<T : ViewDataBinding> : BaseFragment<T>() {



    override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        // 如果请求队列不为空,直接发送请求
        if (netData.isNotEmpty()) addRequest(*netData)
    }


}